﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ChonDe.aspx.cs" Inherits="ChonDe" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <script src="Scripts/update.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="container">
    <div class="row">
        <div class="panel panel-default">
          <div class="panel-body">
            <h3>Thông tin học viên</h3>
            <table class="table table-bordered">
                <tr>
                    <td><span class="glyphicon glyphicon-user"></span> Họ tên</td>
                    <td>
                        <asp:Label ID="lblHoTen" runat="server" Text="Label"></asp:Label></td>
                </tr>
                <tr>
                    <td><span class="glyphicon glyphicon-calendar"></span> Ngày sinh</td>
                    <td><asp:Label ID="lblNgaySinh" runat="server" Text="Label"></asp:Label></td>
                </tr>
                <tr>
                    <td><span class="glyphicon glyphicon-home"></span> Địa chỉ</td>
                    <td><asp:Label ID="lblDiaChi" runat="server" Text="Label"></asp:Label></td>
                </tr>
                <tr>
                    <td><span class="glyphicon glyphicon-phone"></span> Điện thoại</td>
                    <td><asp:Label ID="lblDienThoai" runat="server" Text="Label"></asp:Label></td>
                </tr>
                <tr>
                    <td><span class="glyphicon glyphicon-envelope"></span> Email</td>
                    <td><asp:Label ID="lblEmail" runat="server" Text="Label"></asp:Label></td>
                </tr>             
            </table>
            <p>
                <button type="button" class="btn btn-primary btn-sm" data-toggle="modal" data-target="#boxDoiMatKhau"><span class="glyphicon glyphicon-refresh"></span> Đổi mật khẩu</button>
                <a class="btn btn-success btn-sm" href="DangThoat.aspx"><span class="glyphicon glyphicon-log-out"></span> Thoát</a>
            </p>
          </div>
        </div>
    </div>
    <div class="row">
        <br />
        <asp:GridView ID="GridView1" runat="server" CssClass="table table-bordered" AutoGenerateColumns="False" OnRowCommand="GridView1_RowCommand">
            <Columns>
                <asp:BoundField DataField="TenDe" HeaderText="Đề Thi" />
                <asp:BoundField DataField="NgayThi" HeaderText="Thời gian" />
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:Button CssClass="btn btn-warning" ID="Button1" runat="server" Text="Bắt đầu" CommandName="BatDau" CommandArgument='<%#Eval("MaBaiThi") %>'/>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
    <asp:Literal ID="mess" runat="server"></asp:Literal>

    <div class="row">
        <div class="panel panel-default">
            <div class="panel-body">
            <h3>Các đề đã thi</h3>
            <asp:GridView ID="dsDaThi" runat="server" CssClass="table table-bordered" AutoGenerateColumns="False" OnRowCommand="GridView1_RowCommand">
                <Columns>
                    <asp:BoundField DataField="TenDe" HeaderText="Đề Thi" />
                    <asp:BoundField DataField="NgayThi" HeaderText="Thời gian" />
                    <asp:BoundField DataField="Diem" HeaderText="Điểm" />
                </Columns>
            </asp:GridView>
            </div>
        </div>
    </div>
    </div>

    <div class="modal fade" id="boxDoiMatKhau" tabindex="-1" role="dialog" aria-labelledby="boxDoiMatKhau">
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title">Đổi mật khẩu</h4>
          </div>
          <div class="modal-body">
            <div class="form-group">
                <label>Mật khẩu hiện tại</label>
                <input type="password" class="form-control required" id="txtMatKhauHienTai" placeholder="Mật khẩu hiện tại">
            </div>
            <div class="form-group">
                <label>Mật khẩu mới</label>
                <input type="password" class="form-control required" id="NewPassword" placeholder="Mật khẩu mới">
            </div>
            <div class="form-group">
                <label>Nhập lại</label>
                <input type="password" class="form-control required" id="rpassword" placeholder="Nhập lại mật khẩu">
            </div>
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">Đóng</button>
            <button type="button" class="btn btn-primary" onclick="return doimatkhau();">Chấp nhập</button>
          </div>
        </div>
      </div>
    </div>
</asp:Content>